package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.VApplicationInfoScoreMapper;
import com.ruoyi.system.domain.VApplicationInfoScore;
import com.ruoyi.system.service.IVApplicationInfoScoreService;
import com.ruoyi.common.core.text.Convert;

/**
 * 考生信息查询Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-14
 */
@Service
public class VApplicationInfoScoreServiceImpl implements IVApplicationInfoScoreService 
{
    @Autowired
    private VApplicationInfoScoreMapper vApplicationInfoScoreMapper;

    /**
     * 查询考生信息查询
     * 
     * @param applicationId 考生信息查询主键
     * @return 考生信息查询
     */
    @Override
    public VApplicationInfoScore selectVApplicationInfoScoreByApplicationId(Long applicationId)
    {
        return vApplicationInfoScoreMapper.selectVApplicationInfoScoreByApplicationId(applicationId);
    }

    /**
     * 查询考生信息查询列表
     * 
     * @param vApplicationInfoScore 考生信息查询
     * @return 考生信息查询
     */
    @Override
    public List<VApplicationInfoScore> selectVApplicationInfoScoreList(VApplicationInfoScore vApplicationInfoScore)
    {
        return vApplicationInfoScoreMapper.selectVApplicationInfoScoreList(vApplicationInfoScore);
    }

    /**
     * 新增考生信息查询
     * 
     * @param vApplicationInfoScore 考生信息查询
     * @return 结果
     */
    @Override
    public int insertVApplicationInfoScore(VApplicationInfoScore vApplicationInfoScore)
    {
        vApplicationInfoScore.setCreateTime(DateUtils.getNowDate());
        return vApplicationInfoScoreMapper.insertVApplicationInfoScore(vApplicationInfoScore);
    }

    /**
     * 修改考生信息查询
     * 
     * @param vApplicationInfoScore 考生信息查询
     * @return 结果
     */
    @Override
    public int updateVApplicationInfoScore(VApplicationInfoScore vApplicationInfoScore)
    {
        vApplicationInfoScore.setUpdateTime(DateUtils.getNowDate());
        return vApplicationInfoScoreMapper.updateVApplicationInfoScore(vApplicationInfoScore);
    }

    /**
     * 批量删除考生信息查询
     * 
     * @param applicationIds 需要删除的考生信息查询主键
     * @return 结果
     */
    @Override
    public int deleteVApplicationInfoScoreByApplicationIds(String applicationIds)
    {
        return vApplicationInfoScoreMapper.deleteVApplicationInfoScoreByApplicationIds(Convert.toStrArray(applicationIds));
    }

    /**
     * 删除考生信息查询信息
     * 
     * @param applicationId 考生信息查询主键
     * @return 结果
     */
    @Override
    public int deleteVApplicationInfoScoreByApplicationId(Long applicationId)
    {
        return vApplicationInfoScoreMapper.deleteVApplicationInfoScoreByApplicationId(applicationId);
    }
}
